from math import sin, cos, radians
class Hex:

    def __init__(self, x, y, elevation, scale, size = 1, hasUnits = False, isAI = False):
        self.x = x
        self.y = y
        self.elevation = elevation
        self.type = elevation//(scale*64)
        self.hasUnits = hasUnits
        self.isAI = isAI
        self.s = size
        self.h = sin(radians(30))*self.s
        self.r = cos(radians(30))*self.s
        self.b = self.s+2*self.h
        self.a = 2*self.r
        self.nodePath = {}

